package com.cjb.usercenter.service;

import com.cjb.usercenter.dao.RpcInfoDOMapper;
import com.cjb.usercenter.entity.RpcInfoDO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RpcDoService {

    @Resource
    private RpcInfoDOMapper rpcInfoDOMapper;



    public Integer saveRpcInfo(RpcInfoDO rpcInfoDO){
        int ret = rpcInfoDOMapper.insert(rpcInfoDO);
        return ret;
    }

    public List<RpcInfoDO> listRpcInfo() {
          return rpcInfoDOMapper.selectAll();
    }
}
